import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/workbench_entity.dart';

WorkbenchEntity $WorkbenchEntityFromJson(Map<String, dynamic> json) {
  final WorkbenchEntity shipperEntity = WorkbenchEntity();

  final int? purchaseCount = jsonConvert.convert<int>(json['purchaseCount']);
  if (purchaseCount != null) {
    shipperEntity.purchaseCount = purchaseCount;
  }

  final int? inquiredCount = jsonConvert.convert<int>(json['inquiredCount']);
  if (inquiredCount != null) {
    shipperEntity.inquiredCount = inquiredCount;
  }

  final int? warehousedCount = jsonConvert.convert<int>(json['warehousedCount']);
  if (warehousedCount != null) {
    shipperEntity.warehousedCount = warehousedCount;
  }

  final int? deliveredCount = jsonConvert.convert<int>(json['deliveredCount']);
  if (deliveredCount != null) {
    shipperEntity.deliveredCount = deliveredCount;
  }

  final int? unpaidCount = jsonConvert.convert<int>(json['deliveredCount']);
  if (unpaidCount != null) {
    shipperEntity.unpaidCount = unpaidCount;
  }

  return shipperEntity;
}

Map<String, dynamic> $WorkbenchEntityToJson(WorkbenchEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['purchaseCount'] = entity.purchaseCount;
  data['inquiredCount'] = entity.inquiredCount;
  data['warehousedCount'] = entity.warehousedCount;
  data['deliveredCount'] = entity.deliveredCount;
  data['unpaidCount'] = entity.unpaidCount;
  return data;
}
